# -*- coding: utf-8 -*-
#
# @Time    ： 2023/4/1  14:56
# @Auther  ： 徐良
# File     :  checkBoxParts.py
from PySide6.QtWidgets import QCheckBox
from PySide6.QtCore import Signal


class BaseCheckBox(QCheckBox):

    def __init__(self, parent=None):
        super().__init__(parent)


class CheckBox1(BaseCheckBox):
    def __init__(self, parent=None):
        super().__init__(parent)

class CheckBox(BaseCheckBox):
    dataChange = Signal(bool)
    def __init__(self, parent=None):
        super().__init__(parent)
        # 将复选框状态变化信号与自定义信号关联
        self.toggled.connect(self.dataChange.emit)








